<?php /* Smarty version Smarty-3.1.8, created on 2012-05-28 21:30:42
         compiled from "templates\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:285854fc29f29077d48-34362933%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f90be83b235fb03cc225b11607032e9ddd415899' => 
    array (
      0 => 'templates\\index.tpl',
      1 => 1338233412,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '285854fc29f29077d48-34362933',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fc29f29299bf1_28776107',
  'variables' => 
  array (
    'host' => 0,
    'system' => 0,
    'value' => 0,
    '_LOGGED' => 0,
    'logged_user_name' => 0,
    'komunikat' => 0,
    'nawig1' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fc29f29299bf1_28776107')) {function content_4fc29f29299bf1_28776107($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Ekino</title>
	
	<style>
		body,html{margin:0;padding:0; font-family:Arial; font-size:90%;}
		ul{width:270px;}
		ul{list-style-type:none; margin-left:0; padding-left:0;}
		ul li{border-bottom:1px solid #e0e0e0;}
		ul li a{color:#aaa; text-decoration:none;}
		ul li a:hover{color:#bfbfbf;}
	</style>
	
	<base href="http://<?php echo $_smarty_tpl->tpl_vars['host']->value;?>
/">
	<link type="text/css" rel="stylesheet" href="./css/template.css">
	<script type="text/javascript" src="./js/jquery.js"></script>
	
	
	<?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['system']->value->pobierz_wszystkie_js(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
		<script type="text/javascript" src="./js/<?php echo $_smarty_tpl->tpl_vars['value']->value;?>
"></script>
	<?php } ?>		
	
	
	<?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['system']->value->pobierz_wszystkie_css(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
		<link type="text/css" rel="stylesheet" href="./css/<?php echo $_smarty_tpl->tpl_vars['value']->value;?>
">
	<?php } ?>	
	
</head>
<body>	
	<div style="margin:0 auto; width:1024px;">
		<div style="background:#eee; width:100%; height:100px; padding-top:10px;">
			<div style="float:left; margin-left:10px; padding-right:10px; display:block;">
				<a href="./index.php" ><img src="./images/logo2.png" alt="" width="80"/></a>
			</div>
			<div style="margin:10px; text-align:right; padding:4px; background:#fff;">
				<?php if ($_smarty_tpl->tpl_vars['_LOGGED']->value){?>
					<a href="./logout.php" alt="" />Wyloguj [<?php echo $_smarty_tpl->tpl_vars['logged_user_name']->value;?>
]</a>
				<?php }else{ ?>
					Nie jesteś zalogowany w systemie <a href="./login.php" alt="" />Zaloguj się</a>
				<?php }?>
			</div>
			<div>
				<h1>Ekino - Panel kierownika</h1>
			</div>
		</div>
			<?php if (isset($_smarty_tpl->tpl_vars['komunikat']->value)){?>
				<div style="background:#1e1; border:1px solid #ddd;"><?php echo $_smarty_tpl->tpl_vars['komunikat']->value;?>
</div>
			<?php }?>
		<center>
			

		<?php if (!$_smarty_tpl->tpl_vars['_LOGGED']->value){?>
			<div style="margin:10px;">
				<div id="login">
				<form method="post" action="./login.php">
					<div class="left">Użytkownik:</div><div><input type="text" name="username" /></div>
					<div class="left">Hasło:</div><div><input type="password" name="userpass" /></div>
					 <div class="submit"><input type="submit" value="Zaloguj się" name="submit" /></div>
				</form>
				</div>
			</div>
		<?php }else{ ?>
			
			<div style='width:723px; float:left; padding-left:5px;  height:18px; font-size:11px; background-color:#DEF7FF; text-align:left; line-height:18px; border:1px solid #eee; margin-top:5px; margin-bottom;5px; '> 
				<a href='./index.php' />Strona główna</a>
				<?php if (isset($_smarty_tpl->tpl_vars['nawig1']->value)){?>
				»
				<a href="./<?php echo $_smarty_tpl->tpl_vars['nawig1']->value['url'];?>
" /><?php echo $_smarty_tpl->tpl_vars['nawig1']->value['nazwa'];?>
</a>
				<?php }?>
			</div>
			<div style='width:100%; clear:both; height:5px;'></div>
			<div id="srodek" style="height: 100%; min-height: 100px;">
				<div id="opcje-kierownik">
					<input type="button" id="akceptuj-grupe" name="kierownik" value="Akceptuj grupę zorganizowaną" />
					<input type="button" id="zmien-cene" name="kierownik" value="Zmień cenę biletu" />
					<!--<input type="button" id="dodaj-admina" name="admin" value="Dodaj administratora" />
					
					<input type="button" id="usun-admina" name="admin" value="Usuń administratora" />
					-->
				</div>
				<div id="wyniki"></div>
			</div>
		<?php }?>
		
		</center>
		<div style="clear:both; width:100%; text-align:center; font-size:10px; background:#eee;">Copyright 2012 - <br /><h1>Maciej Pochroń - Winner</h1>, Adam Nowak <b>Losser</b>, Leszek Rączka <b>Losser</b></div>
	</div>

</body>
</html<?php }} ?>